import request from '@/utils/request'

// 获取-部门列表
export const getDepartment = () => request.get('/company/department')
// 获取-部门负责人
export const getManager = () => request.get('/sys/user/simple')
// 添加
export const getAffirm = data => request.post('/company/department', data)
// 获取部门详细信息
export const getEdit = id => request.get(`/company/department/${id}`)
// 修改
export const putEdit = data => request.put(`/company/department/${data.id}`, data)
// 删除
export const delDepartment = id => request.delete(`/company/department/${id}`)
